﻿using System;
using System.Runtime.CompilerServices;

namespace Log.Common
{
    public interface ILog
    {
        void Info(string message,bool isWriteCaller=false, [CallerMemberName] string memberName = "",
            [CallerFilePath] string sourceFilePath = "",
            [CallerLineNumber] int sourceLineNumber = 0);

        void Error(Exception ex, bool isWriteCaller = true, [CallerMemberName] string memberName = "",
            [CallerFilePath] string sourceFilePath = "",
            [CallerLineNumber] int sourceLineNumber = 0);

        void Error(string message, Exception ex, bool isWriteCaller = true, [CallerMemberName] string memberName = "",
            [CallerFilePath] string sourceFilePath = "",
            [CallerLineNumber] int sourceLineNumber = 0);
        void Configure(string dir);
    }
}